package com.proposition.commons.exam.result;

/**
 * @Author: 陈玉林
 * @Description: 保存结果信息,编号对应解释信息
 * @Date: Create In 15:42 2017/8/10
 * @ModifiedBy:
 */
public enum ResultEnum {
    UNKONW_ERROR(-1,"未知错误！"),
    SUCESS(0, "成功！"),
    ILLEGAL_CATEGORY(1001,"试题分类不正确！"),
    ILLEGAL_STEM(1002,"请检查上传文件，不可填写重复的试题题干！"),
    ILLEGAL_FIELD(1003,"请检查试题模板是否被改变！"),
    EMPTY_EXAMS(1004,"无试题信息！"),
    ILLEGAL_PART(1005,"请填写正确的试题部位！"),
    ILLEGAL_COGNITIVE_LEVEL(1006,"请填写正确的认知层次！"),
    ILLEGAL_EXAM_NUM(1007,"试题题号有误，请输入1~250之间的整数！"),
    ILLEGAL_WORD_TEMPLATE(1008,"试题模板被修改，请检查！"),
    EXAM_HAS_IN_PAPER(1009,"对不起，您不能进行该操作，该试题已经被组卷！"),
    ILLEGAL_STEM_EXIST(1010,"试题已存在！"),
    ILLEGAL_ANSWER_SCORE(1011,"答案格式不正确，正确的答案格式为\"答案-分数，例如：xxx-1.5\"，请仔细检查！"),
    ILLEGAL_SCORE(1012,"答案分数格式不正确，应该为大于0小于100的整数或者小数"),
    ILLEGAL_SINGLE_PLOY_SUBCLASS(1013,"请填写正确的手法类型！"),
    ILLEGAL_EXAM_FIELD(1014,"该字段应该在1~250个字符之间！"),
    EMPTY_EXAM_TABLE_FIELD(1015,"试题表格不能为空！"),
    EMPTY_COGNITIVE_LEVEL(1016,"认知层次不可为空！"),
    IMPORT_REPEAT_STEM(1017, "请勿填写相同的试题题干！"),
    REPEAT_EXAM_NUM(1018,"试题题号重复，请修改！"),
    ILLEGAL_TOTAL_SCORE(1019,"总分超过上限！"),


    ILLEGAL_OUTLINE_CODE(2000,"大纲代码位数缺失，请填写正确的大纲代码！"),
    ILLEGAL_OUTLINE_CODE_EXAM_SYLLABUS(2001,"大纲代码不正确，请填写正确的考纲代码！"),
    ILLEGAL_OUTLINE_CODE_SUBJECT_CATEGORY(2002,"大纲代码不正确，请填写正确的学科分类！"),
    ILLEGAL_OUTLINE_CODE_UNIT(2003,"大纲代码不正确，请填写正确的单元！"),
    ILLEGAL_OUTLINE_CODE_DETAIL_ITEM(2004,"大纲代码不正确，请填写正确的细目！"),
    ILLEGAL_OUTLINE_CODE_ESSENTIAL(2005,"大纲代码不正确，请填写正确的要点！"),
    EMPTY_OUTLINE_CODE_ESSENTIAL(2005,"大纲代码不可为空！"),

    EXAM_CATEGORY_NOT_MATCH(3000,"请选择同种类型的试题再进行导出！"),

    ILLEGAL_AUTHORITY(4000,"对不起，您没有该操作权限，请联系上级管理员！"),
    IS_OBJECTIVE_EXAM_ALREADY(4001,"该试题已经是客观化试题！"),
    ILLEGAL_EXAM_ACUPOINT_ADULT_NOT_CHECKED_COMPLETE(4002,"请将该试题审核完毕后再进行该操作！"),
    IS_NOT_OBJECTIVE_EXAM(4003, "该试题非客观化试题，不能进行该操作！"),

    IS_IN_PAPER_ALREADY(5000, "该试题已经组卷，不能进行该操作！"),

    CHAR_TOO_LONG(6000, "字符过长！"),
    ;
    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
